package edu.gyc.hiblog.service;

import com.github.pagehelper.PageInfo;
import edu.gyc.hiblog.model.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.gyc.hiblog.vo.PostVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2020-11-30
 */
public interface PostService extends IService<Post> {

    PageInfo<PostVo> paging(Integer pageNum);

    PageInfo<PostVo> paging(Integer pageNum,Integer pageSize,Long categoryId, Long userId, Integer level, Boolean recommend, String order);

    PostVo selectOnePostVo(Long id);

    //本周热议
    void initWeekRank();

    void addCommentCountWeekRank(long postId,boolean isIncr);

    void putViewCount(PostVo postVo);
}
